// pages/goods/goodsDetail/comps/formatSelect/formatSelect.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        showFormat: Boolean,
        animationData: Object,
        attrValueList: Array,
        goodsNum: Number,
        formatImg: String,
        goodsMemberPrice: Number,
        nowFormat: String
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        myCatchTouch: function() {
            return
        },
        closeFormatSelect: function() {
            this.triggerEvent('closeFormatSelect')
        },
        goodsNumAdd: function() {
            this.triggerEvent('goodsNumAdd')
        },
        selectAttrValue: function(e) {
            let data = e.currentTarget.dataset
            this.triggerEvent('selectAttrValue', data)
        }
    }
})